package cn.js.ccit.mapper;

import cn.js.ccit.entity.Branch;
import cn.js.ccit.entity.Department;
import cn.js.ccit.vo.DepartmentVo;

import java.util.List;

public interface DepartmentMapper {
    /**
     * 根据条件查询部门列表
     *
     * @param department 部门信息
     * @return 部门信息列表
     */
    List<DepartmentVo> getDepartmentBy(Department department);
    DepartmentVo getDepartmentById(Integer departId);

    /**
     * 查询部门列表
     * @return
     */
    List<DepartmentVo> getAllDepartment();

    /**
     * 添加新部门
     * @param department 部门信息
     * @return
     */
    boolean addDepartmentBy(Department department);

    /**
     * 根据ID删除部门信息
     *
     * @param departId 部门ID
     * @return
     */
    boolean deleteDepartmentById(Integer departId);
}
